@font-face {
    font-family: 'iconfont';
    src: url('https://at.alicdn.com/t/c/font_4211259_0u5hm8ka6caa.eot');
    src: url('https://at.alicdn.com/t/c/font_4211259_0u5hm8ka6caa.eot?#iefix') format('embedded-opentype'),
    url('https://at.alicdn.com/t/c/font_4211259_0u5hm8ka6caa.woff2') format('woff2'),
    url('https://at.alicdn.com/t/c/font_4211259_0u5hm8ka6caa.woff') format('woff'),
    url('https://at.alicdn.com/t/c/font_4211259_0u5hm8ka6caa.ttf') format('truetype'),
    url('https://at.alicdn.com/t/c/font_4211259_0u5hm8ka6caa.svg#iconfont') format('svg');
}
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* 标题样式 */
h1, h2 {
    color: #FF8A65;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF8A65, #FFB74D);
    display: block;
    margin: 10px auto;
    border-radius: 2px;
}

/* 表单样式 */
.form-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #FF8A65;
    box-shadow: 0 0 0 3px rgba(255, 138, 101, 0.1);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(135deg, #FF8A65, #FFB74D);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 138, 101, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 138, 101, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, #FF8A65, #FFB74D);
    color: white;
    padding: 15px 12px;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
}

.table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #fff3e0;
    transform: scale(1.01);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* 导航菜单样式 */
.nav-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.nav-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #495057;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #FF8A65;
    color: #FF8A65;
}

.nav-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #FF8A65;
}

/* 返回按钮样式 */
.back-btn {
    display: inline-flex;
    align-items: center;
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-btn:hover {
    background: #495057;
    transform: translateY(-2px);
}

.back-btn i {
    margin-right: 8px;
}

/* 状态标签 */
.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-found {
    background: #d4edda;
    color: #155724;
}

.status-lost {
    background: #f8d7da;
    color: #721c24;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .table-container {
        overflow-x: auto;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示样式 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #dc3545;
}

/* 成功提示样式 */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}
